package com.demo.gulimall.seckill.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.io.Serializable;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 商品阶梯价格
 *
 * @author Chen Yuan
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("sms_sku_ladder")
public class SkuLadder implements Serializable {
	/** id */
	@TableId(type = IdType.ID_WORKER) // 老版本
    //@TableId(type = IdType.ASSIGN_ID) // 新版本
	@JsonSerialize(using = ToStringSerializer.class)
	@TableField(value = "`id`")
	private Long id;

	/** spu_id */
	@JsonSerialize(using = ToStringSerializer.class)
	@TableField(value = "`sku_id`")
	private Long skuId;

	/** 满几件 */
	@TableField(value = "`full_count`")
	private Integer fullCount;

	/** 打几折 */
	@TableField(value = "`discount`")
	private BigDecimal discount;

	/** 折后价 */
	@TableField(value = "`price`")
	private BigDecimal price;

	/** 是否叠加其他优惠[0-不可叠加，1-可叠加] */
	@TableField(value = "`add_other`")
	private Byte addOther;

}
